<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
	//删除图组图片
	function mdel_img(path){
		$('#img_list div img').each(function(index, element) {
			$.post("{:U('delImgBypath')}",{'path':path},function(data){
				if(data=='OK'){
					
					$('#img_list div').each(function(index, element) {
                        if($(this).attr('url')==path){
							$(this).remove();
						}
                    });
					
					$('#picmsg input').each(function(index, element) {
                        if($(this).val()==path){
							$(this).remove();
						}
                    });
				}
			});
		});
	}
	
  </script>
  <h1><a href="{:U('index')}">返回列表</a></h1>
    <form class="checkoutform" action="{:U('update')}" method="post">
    <input name="id" type="hidden" value="{$info.id}" />
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right">留言人</td>
        <td><span style="height:400px; width:100%;">{$info.yourname}</span></td>
      </tr>
      <tr>
        <td align="right"> 联系电话</td>
        <td><span style="height:400px; width:100%;">{$info.tel}</span></td>
      </tr>
      <tr>
        <td align="right">E-mail</td>
        <td><span style="height:400px; width:100%;">{$info.e-mail}</span></td>
      </tr>
      <tr>
        <td align="right">联系地址</td>
        <td><span style="height:400px; width:100%;">{$info.address}</span></td>
      </tr>
      <tr>
        <td align="right">QQ</td>
        <td><span style="height:400px; width:100%;">{$info.QQ}</span></td>
      </tr>
      <tr>
        <td align="right">标题</td> 
        <td><span style="height:400px; width:100%;">{$info.title}</span></td>
      </tr>
      <tr>
        <td align="right">内容</td>
        <td> <html:editor id="editor" name="content" type="KindEditor" style="height:100; width:100%;">{$info.content}</html:editor></td>
      </tr>
      <tr>
        <td align="right">显示</td>
        <td><label>
          <input name="status" type="radio" id="is_nav_" value="1" checked="checked" <eq name="info['status']" value="0">checked="checked"</eq> />
          是</label>
          <label>
            <input name="status" type="radio" id="is_nav_8" value="0" <eq name="info['status']" value="0">checked="checked"</eq> />
            否</label></td>
      </tr>
        <tr><td colspan="2" align="center"><button>提交</button></td>
        </tr>
      </table>
    </form>
  </div>
  <div class="clear"></div>
</div>
</body></html>